﻿@model Jobs_MVC_3_1.Models.JobPosting

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>JobPosting</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.PostingId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PostingId)
            @Html.ValidationMessageFor(model => model.PostingId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CompanyID, "ClientCompany")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CompanyID", String.Empty)
            @Html.ValidationMessageFor(model => model.CompanyID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactPerson)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContactPerson)
            @Html.ValidationMessageFor(model => model.ContactPerson)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Department)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Department)
            @Html.ValidationMessageFor(model => model.Department)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.JobCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.JobCode)
            @Html.ValidationMessageFor(model => model.JobCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Salary)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Salary)
            @Html.ValidationMessageFor(model => model.Salary)
        </div>


        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StateId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StateId)
            @Html.ValidationMessageFor(model => model.StateId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CountryId, "Country")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CountryId", String.Empty)
            @Html.ValidationMessageFor(model => model.CountryId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EducationLevelID, "EducationLevel")
        </div>
        <div class="editor-field">
            @Html.DropDownList("EducationLevelID", String.Empty)
            @Html.ValidationMessageFor(model => model.EducationLevelID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.JobTypeID, "JobType")
        </div>
        <div class="editor-field">
            @Html.DropDownList("JobTypeID", String.Empty)
            @Html.ValidationMessageFor(model => model.JobTypeID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.JobDescription)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.JobDescription)
            @Html.ValidationMessageFor(model => model.JobDescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Qualifications)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Qualifications)
            @Html.ValidationMessageFor(model => model.Qualifications)
        </div>


        <div class="editor-label">
            @Html.LabelFor(model => model.PostingDate)
        </div>
        <div class="editor-field">
            @Html.
            @Html.EditorFor(model => model.PostingDate)
            @Html.ValidationMessageFor(model => model.PostingDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PostedBy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PostedBy)
            @Html.ValidationMessageFor(model => model.PostedBy)
        </div>
       
        <div class="editor-label">
            @Html.LabelFor(model => model.Status, "JobStatu")
        </div>
        <div class="editor-field">
            @Html.DropDownList("Status", String.Empty)
            @Html.ValidationMessageFor(model => model.Status)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ClosingReasonID, "ClosingReason")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ClosingReasonID", String.Empty)
            @Html.ValidationMessageFor(model => model.ClosingReasonID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NationalityID, "Nationality")
        </div>
        <div class="editor-field">
            @Html.DropDownList("NationalityID", String.Empty)
            @Html.ValidationMessageFor(model => model.NationalityID)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
